package com.xxx.service.user.service.UserBase;

import com.xxx.common.core.sampleframe.service.impl.FastServiceImpl;
import com.xxx.service.user.dao.UserBase.UserBaseFastDao;
import com.xxx.service.user.entity.UserBase.UserBase;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;


@Service
@Transactional
public class UserBaseService extends FastServiceImpl<UserBase>  {


	@Autowired
	public void setBase(UserBaseFastDao dao) {
		this.baseDao = dao;
	}


	@Override
	public void insert(UserBase userBase) {
		super.insert(userBase);
	}

	public void transcation( ) {
		UserBase userBase = new UserBase();
		userBase.setLoginName("123");
		insert(userBase);
		UserBase userBase1 = new UserBase();
		userBase1.setLoginName("123");
		insert(userBase1);
	}
}
